/**
 * Header Style Sheet
 *
 * Copyright (c) 2013. by Way2CU
 * Author: Mladen Mijatov
 */

header {
	display: block;
}

header div.wrap.top {
	display: block;
	height: 580px;
	position: relative;

	background-image: url(../images/header_background.jpg);
	background-position: center top;
	background-repeat: no-repeat;

	text-align: center;
	z-index: 10003;
}

header div.wrap.top:before {
	display: block;

	position: absolute;
	left: 0px;
	bottom: 140px;

	content: url(../images/guy_mobile.png);
	font-size: 0px;
}

body.rtl header div.wrap.top:before {
	left: auto;
	right: 0px;

	@scale: -1;
	transform: scaleX(@scale);
	-ms-transform: scaleX(@scale);
	-moz-transform: scaleX(@scale);
	-webkit-transform: scaleX(@scale);
}

header img.logo {
	margin-top: 10px;
}

header a.floating_phone_number {
	display: block;
	width: 100%;

	padding: 10px;

	position: fixed;
	left: 0px;
	top: 0px;

	background-color: @color3;
	background-image: url(../images/phone.svg);
	background-position: 98% center;
	background-repeat: no-repeat;
	-moz-box-sizing: border-box;
    box-sizing: border-box;

    color: white;
    font-size: 1.7em;
    text-decoration: none;
    z-index: 10002;
}

body.rtl header a.floating_phone_number {
	background-position: 2% center;
}

header a.floating_phone_number span {
	display: inline-block;
	margin-right: 5px;
}

body.rtl header a.floating_phone_number span {
	margin: 0px;
	margin-left: 5px;
}

/**
 * Call to action
 */
div#message {
	display: block;
	width: 80%;

	margin-left: auto;
	margin-right: auto;
	margin-top: 10px;
	padding: 10px;

	border-radius: 5px;
	background-color: white;
	background-color: fadeout(white, 30%);
	box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.3);

	font-size: 1.2em;
	font-weight: bold;
}

body.rtl div#message {
	right: auto;
	left: 50px;
}

div#message svg {
	position: absolute;
	right: -20px;
	top: 270px;

	@angle: 60deg;
	@scale: 0.8;

	transform: rotate(@angle) scaleX(-1) scale(@scale);
	-ms-transform: rotate(@angle) scaleX(-1) scale(@scale);
	-moz-transform: rotate(@angle) scaleX(-1) scale(@scale);
	-webkit-transform: rotate(@angle) scaleX(-1) scale(@scale);
}

body.rtl div#message svg {
	right: auto;
	left: -20px;

	@angle: -60deg;
	@scale: 0.8;

	transform: rotate(@angle) scale(@scale);
	-ms-transform: rotate(@angle) scale(@scale);
	-moz-transform: rotate(@angle) scale(@scale);
	-webkit-transform: rotate(@angle) scale(@scale);
}

div#message svg path {
	fill: @color1;
}

/**
 * Call to action
 */
div#call_to_action {
	display: block;
	width: 100%;

	position: absolute;
	right: 0px;
	bottom: 0px;

	color: @color1;
	font-size: 1.5em;
	font-weight: bold;
	text-transform: uppercase;
}

body.rtl div#call_to_action {
	right: auto;
	left: 0px;
}

div#call_to_action a {
	display: block;

	position: relative;
	left: 0px;
	top: 0px;

	padding: 10px;

	background-color: @color3;

	color: white;
	text-align: center;
	text-decoration: none;

	transition-property: all;
	transition-duration: 0.3s;
	-moz-transition-property: all;
	-moz-transition-duration: 0.3s;
}

div#call_to_action a span {
	display: block;
	margin-bottom: 5px;
	padding-left: 9px;
	padding-bottom: 5px;

	border-bottom: 2px solid white;

	font-size: 2em;
}

body.rtl div#call_to_action a span {
	padding-left: auto;
	padding-right: 9px;
}

div#call_to_action a span svg {
	position: relative;
	top: -4px;

	margin-right: 5px;

	@scale: 1.6;

	transform: scale(@scale);
	-ms-transform: scale(@scale);
	-moz-transform: scale(@scale);
	-webkit-transform: scale(@scale);
}

body.rtl div#call_to_action a span svg {
	margin-right: auto;
	margin-left: 5px;
}

/**
 * Contact form
 */
div#contact_form {
	display: block;
	padding: 20px;
	padding-left: 10px;
	padding-right: 10px;
	background-color: fadeout(@color1, 20%);
}

div#contact_form div.wrap {
	display: block;
	min-height: 80px;

	position: relative;

	color: white;
	text-align: center;
}

div#contact_form div.overlay {
	display: none;
	width: 100%;
	height: 100%;

	position: absolute;
	left: 0px;
	top: 0px;

	border-radius: 10px;
	background-color: @color1;
	background-image: url(../images/loading.gif);
	background-position: center center;
	background-repeat: no-repeat;
}

div#contact_form div.wrap > div {
	font-size: 1.8em;
	font-weight: bold;
}

div#contact_form form {
	margin-top: 20px;
	padding-top: 20px;

	border-top: 1px solid white;
	font-size: 1.4em;
}

div#contact_form label {
	display: block;
	margin-bottom: 10px;
}

div#contact_form label span {
	display: inline-block;
	width: 20%;
}

div#contact_form input {
	width: 75%;

	margin-left: 3px;
	padding: 3px;

	border: 2px solid white;
	border-radius: 2px;

	transition-property: all;
	transition-duration: 0.3s;
	-moz-transition-property: all;
	-moz-transition-duration: 0.3s;
}

body.rtl div#contact_form input {
	margin-left: auto;
	margin-right: 3px;
}

div#contact_form input:focus {
	border-color: @color3;
	outline: none;
}

div#contact_form div.controls {
	display: block;
	padding-top: 10px;
}

div#contact_form button {
	padding: 5px;
	padding-left: 50px;
	padding-right: 50px;

	border: 0px;
	border-radius: 5px;
	background-color: @color3;

	color: white;
}
